Environment: Production
Login: Company admin
Page: Change Password Password
Browser: Chrome

Scenario to reproduce issue :

Add new employee and login employee in a workflow.

Once employee changed password browser shows a popup to save password.

After saving password logout employee and login with company admin.

Select employee from search employee and click on change password option from left panel under Employee menu.

After loading page double click on the New Password field on the page. Once double clicked the browser will populate previously saved password in that field.

We have tried the following solutions, but not resolved

Set autocomplete="false" to all password fields.

Added this code to the first input type password

<input id="email" readonly type="email" onfocus="if (this.hasAttribute('readonly'))	{this.removeAttribute('readonly'); this.blur(); this.focus(); }" />	this.removeAttribute("class").

Set autocomplete=”off” to form and input type password fields

<form autocomplete="off" role="presentation">

Tried with set autocomplete="nope"

Also, set form and input type password to autocomplete="new-password"

Tried with added new input type='text' before the password field as browser looks up to find an upper input type text from the first input type password to pick it as a username.

Note : This issue is a Chrome browser specific issue and reproduced some times.

Referred below links

https://stackoverflow.com/questions/15738259/disabling-chrome-autofill#

https://jsfiddle.net/danielsuess/n0scguv6/

https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion

https://stackoverflow.com/questions/43783924/disable-google-chrome-autocomplete-autofill-suggestion

https://stackoverflow.com/questions/18531437/stop-google-chrome-auto-fill-the-input

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete

https://stackoverflow.com/questions/10938891/disable-form-autofill-in-chrome-without-disabling-autocomplete

https://stackoverflow.com/questions/12374442/chrome-browser-ignoring-autocomplete-off

https://github.com/biesbjerg/jquery.disable-autofill

https://bugs.chromium.org/p/chromium/issues/detail?id=370363#c7

https://stackoverflow.com/questions/35863928/how-to-hint-google-smart-lock-to-use-a-specific-input-field-as-the-username-in-a

Sudhir Kalikate

2017-11-17T18:08:06